package org.bigjava.user.service;

import org.bigjava.bean.Posts;
import org.bigjava.bean.User;

import java.util.List;

public interface UserServices {

    public List<User> getAllUser();

    public boolean sign(User user); //注册用户

    public User getUserById(long id);//根据用户id查询用户资料

    public boolean queryUserName(String userName);//查询是否有重复用户

    public boolean loginUser(User user);//登录验证

    public User getUserByName(String username);//根据用户名查询用户资料

    public void updateUserlikes(long id);//增加用户累计获赞数

    public void updateUserNolikes(long id);//减少用户累计获赞

    public int queryUserState(long userId);//查询用户账号状态

    public List<Posts> querytopicOfPosts(long topicId);//查询话题的全部帖子

    public User getUserbyidother(String username);//获取他人资料

}
